<?php


namespace app\index\controller;

use think\Hook;
use think\View;

class Account
{
    public function index()
    {

//        $view  = new View();
//        $data = session('user');
//        $view->assign('data',$data);
        if(!session('user')){
            return redirect("/index");
        }
        return view();
    }
    public function userinfo(){
        if(!session('user')){
            return redirect("/index");
        }
        return view();
    }
    public function meetingsign(){
        if(!session('user')){
            return redirect("/index");
        }
        return view();
    }

    public function prove(){
        if(!session('user')){
            return redirect("/index");
        }
        return view();
    }
    public function leave(){
        if(!session('user')){
            return redirect("/index");
        }
        return view();
    }

    public function homework(){
        if(!session('user')){
            return redirect("/index");
        }
        return view();
    }
    public function video(){
        if(!session('user')){
            return redirect("/index");
        }
        return view();
    }

    public function download(){
        if(!session('user')){
            return redirect("/index");
        }
        return view();
    }


}